#ifndef COLLECTCHANNLFORM_H
#define COLLECTCHANNLFORM_H

#include <QWidget>
#include <QMap>
#include <QTreeWidgetItem>
#include "toObject/ModelXml.h"
#include "AttribBaseForm.h"
namespace Ui {
class CollectChannlForm;
}

class CollectChannlForm : public AttribBaseForm
{
    Q_OBJECT

public:
    explicit CollectChannlForm(QWidget *parent = nullptr);
    ~CollectChannlForm();

    void InitUIData() override;

    void saveModel() override;

    stCollectChannel GetUIData();

private slots:
    void on_save_Button_clicked();

    void on_comboBox_currentIndexChanged(int index);

    void on_textChanged(const QString &);
private:
    Ui::CollectChannlForm *ui;
    //stCollectChannel  m_channel;
    QMap<QString,QWidget *> m_mapChilds;

};

#endif // COLLECTCHANNLFORM_H
